home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1987 March
/
Ahoy_Magazine_87-03_1987_Double_L.d64
/
Round About
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
2KB
|
34 lines
0 print"[147]":poke53280,0:poke53281,0:poke646,1
1 print"commodares problem #35-1"
2 print" round about"
3 rem solution by
4 rem fred simon
5 rem *** for c-64 ***
9 rem === for ccw motion:
10 rem *remove rem from lines 150
15 rem and 220
20 rem *add rem to start of lines 140
25 rem and 210
30 rem *change cc=22481 in line 40
35 rem to cc=22587
40 cc=22481
50 input"enter string:";w$:w$=chr$(32)+w$+chr$(32)
60 sp=20 :rem # of 1/60th second delays between interrupts
70 for ad=49152 to 49311:read x:poke ad,x :ck=ck+x:next
80 if ck<>cc then print "error in data statements" : end
90 poke 49284,len(w$):for i=1 to len(w$):poke 49311+i,asc(mid$(w$,i,1)):next
100 poke 792,0:poke 793,192:poke 56589,127:poke 56589,130:poke 56580,26
110 poke 56581,20:poke 56590,17:poke 56582,sp:poke 56583,0
120 print chr$(14)chr$(147):poke 56591,81:end
130 data 72,138,72,152,72,160,0,185,0,0,153,0,193,200,208,247,132,251,173,159
140 data 192,201,126,144,5,169,0,141,159,192,133,252,165,252,41,127
150 rem data 192,234,234,16,5,169,125,141,159,192,133,252,165,252,41,127
160 data 201,40,176,9,133,211,169,0,133,214,76,110,192,233,39,201,25,176,9,133
170 data 214,169,39,133,211,76,110,192,233,24,201,40,176,15,133,250,169,40
180 data 229,250,133,211,169,24,133,214,76,110,192,233,39,201,24,144,7,230
190 data 252,230,252,76,32,192,133,250,169,25,229,250,133,214,169,0,133,211
200 data 32,108,229,174,158,192,164,251,185,160,192,168,32,24,234,230,252
210 data 230,251,165,251,201,13,176,3,76,32,192,238,159,192,160,0,185
220 rem data 230,251,165,251,201,13,176,3,76,32,192,206,159,192,160,0,185
230 data 0,193,153,0,0,200,208,247,172,13,221,76,94,254,1,0